<template>
    <view class="content" @click="clickFn()">
        <slot></slot>
        <view class="desc_view">{{desc}}</view>
    </view>
    
</template>

<script>
export default {
    props: {
        desc: String,
        url: String
    },

    mounted(){
    },
    methods: {
        clickFn() {
            if (this.url) {
                wx.navigateTo({
                    url: this.url
                })
            }
        }
    }
}
</script>

<style>
.content{ 
    display:flex;
    justify-items: center; 
    align-items: center; 
    flex-direction:column;
}

</style>